//
//  CommonTools.h
//  AAIM
//
//  Created by 远的小布丁 on 2019/12/17.
//  Copyright © 2019 AAIM. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface CommonTools : NSObject

+(BOOL) isEmpty:(NSString *) str;//判断是否全为空格
+ (BOOL)isPhoneNumber:(NSString *)str;//正则匹配手机号
//是否为字符串
+ (BOOL) isBlankString:(NSString *)string;
//字符串是否为纯数字
+ (BOOL)isPureNumandCharacters:(NSString *)string;
//判断是否纯数字或纯字母或字母加数字
+(BOOL)checkIsHaveNumAndLetter:(NSString*)password;
//判断键值对value是否为空
+(BOOL)isNull:(NSDictionary *)dict key:(NSString*)key;
//修改存储的新好友状态
+(void)changeNewFriendsStatus:(NSInteger)status withFriendID:(NSString *)friendID;
//时间戳转时间
+(NSString *)changeTimesTamp:(NSInteger)timesTamp;
//获取当前时间
+ (NSString *)currentDateStr;
//时间戳转时间
+ (NSString *)getDateStringWithTimeStr:(NSString *)str;
//获取当前时间戳
+ (NSString *)currentTimeStr;
@end

NS_ASSUME_NONNULL_END
